function transform() {
    let message = document.getElementById("message");
    message.style.position = "absolute";
    message.style.left = "10px";
    message.style.top = "10px";
   moveMessage("message",200,200,10);
}
function moveMessage(elementID,final_x,final_y,interval) {
    let elem  = document.getElementById(elementID);
    let xpos = parseInt(elem.style.left);
    let ypos = parseInt(elem.style.top);
    if(xpos == final_x && ypos == final_y) return true;
    if(xpos < final_x) xpos++;
    if(xpos>final_x) xpos--;
    if(ypos<final_y) ypos++;
    if(ypos>final_y) ypos--;
    elem.style.left = xpos + "px";
    elem.style.top = ypos + "px";
    // move = setTimeout("moveMessage()",interval);
    let repeat = "moveMessage('"+elementID+"',"+final_x+","+final_y+","+interval+")";
    // repeat = "moveMessage(meesage,200,100,10)" 错误，message 需要带引号
    console.log(repeat)
    move = setTimeout(repeat,interval);
}
function clear() {
   setTimeout(() => {
       clearTimeout(move)
   }, 200);
}
